<?php
class ControllerModuleTintuc extends Controller
{
	public function index()
	{
		
		$this->load->model("core/media");
		$this->load->model("core/sitemap");
		$this->load->helper('image');
		if($sitemapid == "")
			$sitemapid = $this->document->sitemapid;
		
		$siteid = $this->user->getSiteId();
		$this->data['sitemaps'] = array();
		$this->model_core_sitemap->getTreeSitemap($sitemapid,$this->data['sitemaps'],$siteid);
		unset($this->data['sitemaps'][0]);
		
		foreach($this->data['sitemaps'] as $item)
		{
			$template = array(
							  'template' => "module/news_list.tpl",
							  'width' => 180,
							  'height' =>180
							  );
			$arr = array($item['sitemapid'],10,"",$template);
			
			$this->data['output'] .= $this->loadModule('module/pagelist','getList',$arr);
		}
		$this->id="news";
		$this->template="common/output.tpl";
		$this->render();
	
	}
	
	
}
?>